/*================================================================
*   Copyright (C) 2017 LiuYao. All rights reserved.
*   
*   Filename : constant_factory.h
*   Author : LiuYao
*   Date : 2017-12-28
*   Description : 
*
================================================================*/
#ifndef _CONSTANT_FACTORY_H
#define _CONSTANT_FACTORY_H

#include "factory.h"
#include "../graph/node.h"
#include "../graph/constant.h"
#include "../matrix/matrix.h"

class ConstantFactory : public Factory {
    private:
        const Matrix value_;
        
        Node* hook() { return new Constant(value_); }
        
    public:
        ConstantFactory(const Matrix& value) : value_(value){}
};

#endif
